CMD API

 

To use the CMD API you first need a system user who is authorised to use the API.

 

 

 

ê We recommend that you do not use the “admin” user here but that you create a new user with restricted authorisations.

 

 

Using the CMD API

 

The API can be addressed with the following: https://<SMS Gateway IP>/commands.php.

You can send data to this interface via POST or GET.

 

The following data are expected:

 

Parameter Description
mode

Mode in accordance with the following table.

 

Option Description
halt Use this option to shut down the SMS Gateway.
reboot Use this option to reboot the SMS Gateway.
password The user’s password.
username System user authorised to access the HTTP API.

 

 

Example

 

https://192.168.1.1/commands.php?

username=systemuser&password=secret&mode=reboot

 

 

 

Related articles